package com.road.vast.component;

import com.road.vast.common.utils.IdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @Author 郭泽鹏
 * @Date 2020/6/30 20:02
 * @Version 1.0
 * @Description 注册主键生成策略：雪花算法
 */
@Component
public class IdWorkerComponent{
    @Bean
    public IdWorker getIdWorker(){
        return new IdWorker();
    }
}
